//
//  LHAddImageView.h
//  Loohoo
//
//  Created by 陈镇 on 2025/6/9.
//

#import <UIKit/UIKit.h>
#import "LHSelectPhotoManager.h"
#import "LHAddImageCellModel.h"

#define LHAddImageView_gap 5
NS_ASSUME_NONNULL_BEGIN




@protocol LHAddImageViewDelegate <NSObject>

/** 刷新高度回调*/
-(void)refreshLayout:(CGFloat)height image:(NSArray<LHAddImageCellModel * >*)images;

@end




@interface LHAddImageViewConfig : NSObject

//设置cell固定宽度 ，不设置就是默认均分
@property(nonatomic,assign) CGFloat cell_width;
//每一行会有多少个，和cell_width 参数互斥
@property(nonatomic,assign) NSInteger lineMax;
//最大数量
@property(nonatomic,assign) NSInteger maxCount;
//默认标题
@property(nonatomic,strong) NSString * btnTitle;

@end

@interface LHAddImageView : UIView




@property(nonatomic,strong) LHAddImageViewConfig *config;

@property(nonatomic,weak) id<LHAddImageViewDelegate> delegate;

@property(nonatomic,strong) NSArray<LHAddImageCellModel *> *images;

-(CGFloat)getSelfHeight;

@end

NS_ASSUME_NONNULL_END
